package com.rock.goc.data.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rock.common.utils.PageUtils;
import com.rock.common.utils.Query;

import com.rock.goc.data.dao.AreaCubicleDao;
import com.rock.goc.data.entity.AreaCubicleEntity;
import com.rock.goc.data.service.AreaCubicleService;


@Service("areaCubicleService")
public class AreaCubicleServiceImpl extends ServiceImpl<AreaCubicleDao, AreaCubicleEntity> implements AreaCubicleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AreaCubicleEntity> page = this.page(
                new Query<AreaCubicleEntity>().getPage(params),
                new QueryWrapper<AreaCubicleEntity>()
        );

        return new PageUtils(page);
    }

}